package com.stylefeng.guns.modular.system.service.impl;

import com.stylefeng.guns.modular.system.model.Jarinfo;
import com.stylefeng.guns.modular.system.dao.JarinfoMapper;
import com.stylefeng.guns.modular.system.service.IJarinfoService;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 * jar包 服务实现类
 * </p>
 *
 * @author kutty
 * @since 2018-10-18
 */
@Service
public class JarinfoServiceImpl extends ServiceImpl<JarinfoMapper, Jarinfo> implements IJarinfoService {

    @Resource
    JarinfoMapper jarinfoMapper;

    @Override
    public Integer selectMaxId(){
        Integer maxid = jarinfoMapper.selectMaxId();
        return maxid==null?0:maxid;
    }

    @Override
    public Jarinfo selectByCpid(String cpid){
        return jarinfoMapper.selectByCpid(cpid);
    }


    @Override
    public Integer updIsGenerator(Integer id){
        return jarinfoMapper.updIsGenerator(id);
    }

}
